MODSIGN: Make shash allocation failure fatal
authorBen Hutchings <ben@decadent.org.uk>
Sun, 5 May 2019 12:45:06 +0000 (13:45 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 29 Apr 2022 09:36:50 +0000 (10:36 +0100)
commit031d7a0b184b8c17e835e9ec0de9fd03fe8d2853
tree6acea4abad083d5fba52e93f94d81271288b5907
parent3ac63182439eaf13dd411fad29cd3d8682127d46
MODSIGN: Make shash allocation failure fatal

mod_is_hash_blacklisted() currently returns 0 (suceess) if
crypto_alloc_shash() fails.  This should instead be a fatal error,
so unwrap and pass up the error code.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/all/db-mok-keyring
Gbp-Pq: Name modsign-make-shash-allocation-failure-fatal.patch
kernel/module_signing.c